#!/bin/bash
###
 # @Date: 2020-10-27 19:13:07
 # @LastEditors: Tonser
 # @LastEditTime: 2020-11-30 15:08:43
 # @FilePath: /SwarmScripts/install/set_realsense.sh
 # @Description: start 启动脚本 使用前需要执行config.sh
### 


# 运行mavros
PASSWD="up"

#把以下配置内容填入到.bashrc中
#ID=0
#USB_COM=1
wget  https://raw.githubusercontent.com/IntelRealSense/librealsense/master/config/99-realsense-libusb.rules
echo $PASSWD | sudo -S mv *.rules /etc/udev/rules.d
#echo $PASSWD | sudo -S apt-key adv --keyserver keys.gnupg.net --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE || sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE

#sudo add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo bionic main" -u

# sudo apt-get install libgtk-3-dev
#sudo apt-get install librealsense2-dkms
#sudo apt-get install librealsense2-utils
#sudo apt-get install librealsense2-dev
#sudo apt-get install librealsense2-dbg
